package rejahealth;

import rejahealth.model.Person;

import rejahealth.ui.*;
import rejahealth.util.EnergySensor;
import rejahealth.util.RandomPersonTemp;
/**
 * @author Tiago Tiveron
 */
public class RejaHealth {

    public static void main(String[] args) {
        EnergySensor sensor = new EnergySensor();
        MainFrame main = new MainFrame(sensor.getDados(), sensor);
        //MainFrameIESB main = new MainFrameIESB(sensor.getPerson());
        //MainFrameTotem main = new MainFrameTotem(sensor.getPerson());
        main.setVisible(true);
        //makeTests();
    }
    
    public static void makeTests() {
        RandomPersonTemp factory = new RandomPersonTemp();
        Person person = factory.getTempPerson();
        System.out.println("height: " + person.getHeight() + " - weight: " + person.getWeight());
        System.out.println("imc: " + String.valueOf(String.format("%1$,.2f", person.getImc())));
        
        RandomPersonTemp factoryWeather = new RandomPersonTemp();
        Person weather = factoryWeather.getTempPerson();
        System.out.println("temp: " + weather.getTemperature() + " humi: " + weather.getHumidity());
    }
}
